<?php


if(!function_exists("make_button")) {
    /**
     * 生成button按钮样式
     */
    function make_button($title, $class = '', $icon = '') {
        $btn = '<button type="button" class="btn '.$class.'">';

        if($icon) {
            $icon_str = 'feather icon-cloud '. $icon;

            $btn .= '<i class="'.$icon_str.'"></i> ';
        }

        $btn .= $title.'</button>';

        return $btn;
    }
}
